<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
<head>
<title> Modify Info Page</title>
</head>
<body>
<h:form>
    <h:outputLabel value="Modify #{userBean.accountInfo.firstname} Demographic Info " />
<br></br>
<br></br>
   <h:panelGrid columns="3">
      <h:outputText value="State :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.state} "></h:outputText>
      <h:selectOneMenu value="#{modifyDemographic.entered_state}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="AL" itemValue="AL" />
          <f:selectItem itemLabel="AK" itemValue="AK" />
          <f:selectItem itemLabel="AR" itemValue="AR" />
          <f:selectItem itemLabel="AZ" itemValue="AZ" />
          <f:selectItem itemLabel="CA" itemValue="CA" />
          <f:selectItem itemLabel="CO" itemValue="CO" />
          <f:selectItem itemLabel="CT" itemValue="CT" />
          <f:selectItem itemLabel="DE" itemValue="DE" />
          <f:selectItem itemLabel="FL" itemValue="FA" />
          <f:selectItem itemLabel="GA" itemValue="GA" />
          <f:selectItem itemLabel="HI" itemValue="HI" />
          <f:selectItem itemLabel="IA" itemValue="IA" />
          <f:selectItem itemLabel="ID" itemValue="ID" />
          <f:selectItem itemLabel="IL" itemValue="IL" />
          <f:selectItem itemLabel="IN" itemValue="IN" />
          <f:selectItem itemLabel="KS" itemValue="KS" />
          <f:selectItem itemLabel="KY" itemValue="KY" />
          <f:selectItem itemLabel="LA" itemValue="LA" />
          <f:selectItem itemLabel="MA" itemValue="MA" />
          <f:selectItem itemLabel="MD" itemValue="MD" />
          <f:selectItem itemLabel="ME" itemValue="ME" />
          <f:selectItem itemLabel="MI" itemValue="MI" />
          <f:selectItem itemLabel="MN" itemValue="MN" />
          <f:selectItem itemLabel="MO" itemValue="MO" />
          <f:selectItem itemLabel="MS" itemValue="MS" />
          <f:selectItem itemLabel="MT" itemValue="MT" />
          <f:selectItem itemLabel="NC" itemValue="NE" />
          <f:selectItem itemLabel="ND" itemValue="ND" />
          <f:selectItem itemLabel="NE" itemValue="NE" />
          <f:selectItem itemLabel="NH" itemValue="NH" />
          <f:selectItem itemLabel="NJ" itemValue="NJ" />
          <f:selectItem itemLabel="NM" itemValue="NM" />
          <f:selectItem itemLabel="NV" itemValue="NV" />
          <f:selectItem itemLabel="NY" itemValue="NY" />
          <f:selectItem itemLabel="OH" itemValue="OH" />
          <f:selectItem itemLabel="OK" itemValue="OK" />
          <f:selectItem itemLabel="OR" itemValue="OR" />
          <f:selectItem itemLabel="PA" itemValue="PA" />
          <f:selectItem itemLabel="RI" itemValue="RI" />
          <f:selectItem itemLabel="SC" itemValue="SC" />
          <f:selectItem itemLabel="SD" itemValue="SD" />
          <f:selectItem itemLabel="TN" itemValue="TN" />
          <f:selectItem itemLabel="TX" itemValue="TX" />
          <f:selectItem itemLabel="UT" itemValue="UT" />
          <f:selectItem itemLabel="VA" itemValue="VA" />
          <f:selectItem itemLabel="VT" itemValue="VT" />
          <f:selectItem itemLabel="WA" itemValue="WA" />
          <f:selectItem itemLabel="WI" itemValue="WI" />
          <f:selectItem itemLabel="WV" itemValue="WV" />
          <f:selectItem itemLabel="WY" itemValue="WY" />
      </h:selectOneMenu>

      <h:outputText value="Age :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.age} "></h:outputText>
      <h:inputText id="age" value="#{modifyDemographic.entered_age}"></h:inputText>

      <h:outputText value="Sex :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.sex} "></h:outputText>
      <h:selectOneMenu value="#{modifyDemographic.entered_sex}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="Female" itemValue="FEMALE" />
          <f:selectItem itemLabel="Male" itemValue="MALE" />
      </h:selectOneMenu>

      <h:outputText value="Race :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.race} "></h:outputText>
      <h:selectOneMenu value="#{modifyDemographic.entered_race}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="African American" itemValue="AFRICAN AMERICAN" />
          <f:selectItem itemLabel="American Indian" itemValue="AMERICAN INDIAN" />
          <f:selectItem itemLabel="Caucasian" itemValue="CAUCASIAN" />
          <f:selectItem itemLabel="Mexican American" itemValue="MEXICAN AMERICAN" />
          <f:selectItem itemLabel="Asian American" itemValue="ASIAN AMERICAN" />
          <f:selectItem itemLabel="Hispanic" itemValue="HISPANIC" />
          <f:selectItem itemLabel="Other" itemValue="OTHER" />
          <f:selectItem itemLabel="Multiracial" itemValue="MULTIRACIAL" />
          <f:selectItem itemLabel="Prefer Not to Respond" itemValue="PREFER NOT TO RESPOND" />
      </h:selectOneMenu>

      <h:outputText value="1. Relative :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.relative1} "></h:outputText>
      <h:selectOneMenu value="#{modifyDemographic.entered_relative1}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="Spouse" itemValue="SPOUSE" />
          <f:selectItem itemLabel="Parent" itemValue="PARENT" />
          <f:selectItem itemLabel="Sibling" itemValue="SIBLING" />
          <f:selectItem itemLabel="Grandparent" itemValue="GRANDPARENT" />
          <f:selectItem itemLabel="Child" itemValue="CHILD" />
      </h:selectOneMenu>

      <h:outputText value="1. College :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.college1} "></h:outputText>
      <h:inputText id="college1" value="#{modifyDemographic.entered_college1}"></h:inputText>

      <h:outputText value="2. Relative :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.relative2} "></h:outputText>
      <h:selectOneMenu value="#{modifyDemographic.entered_relative2}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="Spouse" itemValue="SPOUSE" />
          <f:selectItem itemLabel="Parent" itemValue="PARENT" />
          <f:selectItem itemLabel="Sibling" itemValue="SIBLING" />
          <f:selectItem itemLabel="Grandparent" itemValue="GRANDPARENT" />
          <f:selectItem itemLabel="Child" itemValue="CHILD" />
      </h:selectOneMenu>

      <h:outputText value="2. College :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.college2} "></h:outputText>
      <h:inputText id="college2" value="#{modifyDemographic.entered_college2}"></h:inputText>

      <h:outputText value="3. Relative :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.relative3} "></h:outputText>
      <h:selectOneMenu value="#{modifyDemographic.entered_relative3}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="Spouse" itemValue="SPOUSE" />
          <f:selectItem itemLabel="Parent" itemValue="PARENT" />
          <f:selectItem itemLabel="Sibling" itemValue="SIBLING" />
          <f:selectItem itemLabel="Grandparent" itemValue="GRANDPARENT" />
          <f:selectItem itemLabel="Child" itemValue="CHILD" />
      </h:selectOneMenu>

      <h:outputText value="3. College :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.college3} "></h:outputText>
      <h:inputText id="college3" value="#{modifyDemographic.entered_college3}"></h:inputText>

      <h:outputText value="4. Relative :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.relative4} "></h:outputText>
      <h:selectOneMenu value="#{modifyDemographic.entered_relative4}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="Spouse" itemValue="SPOUSE" />
          <f:selectItem itemLabel="Parent" itemValue="PARENT" />
          <f:selectItem itemLabel="Sibling" itemValue="SIBLING" />
          <f:selectItem itemLabel="Grandparent" itemValue="GRANDPARENT" />
          <f:selectItem itemLabel="Child" itemValue="CHILD" />
      </h:selectOneMenu>

      <h:outputText value="4. College :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.college4} "></h:outputText>
      <h:inputText id="college4" value="#{modifyDemographic.entered_college4}"></h:inputText>

      <h:outputText value="5. Relative :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.relative5} "></h:outputText>
      <h:selectOneMenu value="#{modifyDemographic.entered_relative5}">
          <f:selectItem itemLabel="Select One" itemValue="" />
          <f:selectItem itemLabel="Spouse" itemValue="SPOUSE" />
          <f:selectItem itemLabel="Parent" itemValue="PARENT" />
          <f:selectItem itemLabel="Sibling" itemValue="SIBLING" />
          <f:selectItem itemLabel="Grandparent" itemValue="GRANDPARENT" />
          <f:selectItem itemLabel="Child" itemValue="CHILD" />
      </h:selectOneMenu>

      <h:outputText value="5. College :"></h:outputText>
      <h:outputText value=" #{userBean.demographicInfo.college5} "></h:outputText>
      <h:inputText id="college5" value="#{modifyDemographic.entered_college5}"></h:inputText>

<br></br>
      <h:commandButton value="  Enter  " 
                   action="#{modifyDemographic.saveDemographicInfo}"/>
    </h:panelGrid>
    </h:form>
    <h:form>
            <h:commandButton value="  Return to Main  " 
                action="#{commonBean.returnToMain}"/>
    </h:form>
</body>
</html>